// 导入mongoose(已封装)
const mongoose = require('./connect')

// 购物车表的Schema
const cartSchema = new mongoose.Schema({
    dishId: String,
    userId: String,
    number: Number,
    speandkind: String, //规格和类型
})


const cartModel = mongoose.model('cart', cartSchema, 'cart')

// 导出model
module.exports = cartModel